
<%@ page import="com.eso.haBank.domain.Department" %>
<!doctype html>
<html>
	<head>
		<meta name="layout" content="main">
		<g:set var="entityName" value="${message(code: 'department.label', default: 'Department')}" />
		<title><g:message code="default.show.label" args="[entityName]" /></title>
	</head>
	<body>
		<a href="#show-department" class="skip" tabindex="-1"><g:message code="default.link.skip.label" default="Skip to content&hellip;"/></a>
		<div class="nav" role="navigation">
			<ul>
				<li><a class="home" href="${createLink(uri: '/')}"><g:message code="default.home.label"/></a></li>
				<li><g:link class="list" action="list"><g:message code="default.list.label" args="[entityName]" /></g:link></li>
				<li><g:link class="create" action="create"><g:message code="default.new.label" args="[entityName]" /></g:link></li>
			</ul>
		</div>
		<div id="show-department" class="content scaffold-show" role="main">
			<h1><g:message code="default.show.label" args="[entityName]" /></h1>
			<g:if test="${flash.message}">
			<div class="message" role="status">${flash.message}</div>
			</g:if>
			<ol class="property-list department">
			
				<g:if test="${departmentInstance?.jgm}">
				<li class="fieldcontain">
					<span id="jgm-label" class="property-label"><g:message code="department.jgm.label" default="Jgm" /></span>
					
						<span class="property-value" aria-labelledby="jgm-label"><g:fieldValue bean="${departmentInstance}" field="jgm"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${departmentInstance?.jgjc}">
				<li class="fieldcontain">
					<span id="jgjc-label" class="property-label"><g:message code="department.jgjc.label" default="Jgjc" /></span>
					
						<span class="property-value" aria-labelledby="jgjc-label"><g:fieldValue bean="${departmentInstance}" field="jgjc"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${departmentInstance?.jgbz}">
				<li class="fieldcontain">
					<span id="jgbz-label" class="property-label"><g:message code="department.jgbz.label" default="Jgbz" /></span>
					
						<span class="property-value" aria-labelledby="jgbz-label"><g:fieldValue bean="${departmentInstance}" field="jgbz"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${departmentInstance?.jglx}">
				<li class="fieldcontain">
					<span id="jglx-label" class="property-label"><g:message code="department.jglx.label" default="Jglx" /></span>
					
						<span class="property-value" aria-labelledby="jglx-label"><g:fieldValue bean="${departmentInstance}" field="jglx"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${departmentInstance?.comment}">
				<li class="fieldcontain">
					<span id="comment-label" class="property-label"><g:message code="department.comment.label" default="Comment" /></span>
					
						<span class="property-value" aria-labelledby="comment-label"><g:fieldValue bean="${departmentInstance}" field="comment"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${departmentInstance?.obligateField1}">
				<li class="fieldcontain">
					<span id="obligateField1-label" class="property-label"><g:message code="department.obligateField1.label" default="Obligate Field1" /></span>
					
						<span class="property-value" aria-labelledby="obligateField1-label"><g:fieldValue bean="${departmentInstance}" field="obligateField1"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${departmentInstance?.obligateField2}">
				<li class="fieldcontain">
					<span id="obligateField2-label" class="property-label"><g:message code="department.obligateField2.label" default="Obligate Field2" /></span>
					
						<span class="property-value" aria-labelledby="obligateField2-label"><g:fieldValue bean="${departmentInstance}" field="obligateField2"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${departmentInstance?.obligateField3}">
				<li class="fieldcontain">
					<span id="obligateField3-label" class="property-label"><g:message code="department.obligateField3.label" default="Obligate Field3" /></span>
					
						<span class="property-value" aria-labelledby="obligateField3-label"><g:fieldValue bean="${departmentInstance}" field="obligateField3"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${departmentInstance?.createUser}">
				<li class="fieldcontain">
					<span id="createUser-label" class="property-label"><g:message code="department.createUser.label" default="Create User" /></span>
					
						<span class="property-value" aria-labelledby="createUser-label"><g:fieldValue bean="${departmentInstance}" field="createUser"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${departmentInstance?.createTime}">
				<li class="fieldcontain">
					<span id="createTime-label" class="property-label"><g:message code="department.createTime.label" default="Create Time" /></span>
					
						<span class="property-value" aria-labelledby="createTime-label"><g:formatDate date="${departmentInstance?.createTime}" /></span>
					
				</li>
				</g:if>
			
				<g:if test="${departmentInstance?.updateUser}">
				<li class="fieldcontain">
					<span id="updateUser-label" class="property-label"><g:message code="department.updateUser.label" default="Update User" /></span>
					
						<span class="property-value" aria-labelledby="updateUser-label"><g:fieldValue bean="${departmentInstance}" field="updateUser"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${departmentInstance?.updateTime}">
				<li class="fieldcontain">
					<span id="updateTime-label" class="property-label"><g:message code="department.updateTime.label" default="Update Time" /></span>
					
						<span class="property-value" aria-labelledby="updateTime-label"><g:formatDate date="${departmentInstance?.updateTime}" /></span>
					
				</li>
				</g:if>
			
				<g:if test="${departmentInstance?.parentDept}">
				<li class="fieldcontain">
					<span id="parentDept-label" class="property-label"><g:message code="department.parentDept.label" default="Parent Dept" /></span>
					
						<span class="property-value" aria-labelledby="parentDept-label"><g:link controller="department" action="show" id="${departmentInstance?.parentDept?.id}">${departmentInstance?.parentDept?.encodeAsHTML()}</g:link></span>
					
				</li>
				</g:if>
			
				<g:if test="${departmentInstance?.users}">
				<li class="fieldcontain">
					<span id="users-label" class="property-label"><g:message code="department.users.label" default="Users" /></span>
					
						<g:each in="${departmentInstance.users}" var="u">
						<span class="property-value" aria-labelledby="users-label"><g:link controller="employee" action="show" id="${u.id}">${u?.encodeAsHTML()}</g:link></span>
						</g:each>
					
				</li>
				</g:if>
			
			</ol>
			<g:form>
				<fieldset class="buttons">
					<g:hiddenField name="id" value="${departmentInstance?.id}" />
					<g:link class="edit" action="edit" id="${departmentInstance?.id}"><g:message code="default.button.edit.label" default="Edit" /></g:link>
					<g:actionSubmit class="delete" action="delete" value="${message(code: 'default.button.delete.label', default: 'Delete')}" onclick="return confirm('${message(code: 'default.button.delete.confirm.message', default: 'Are you sure?')}');" />
				</fieldset>
			</g:form>
		</div>
	</body>
</html>
